﻿using RearLivestock.Common.Domains.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RearLivestock.Common.Domains.wbx
{
    /// <summary>
    /// 猪只称重
    /// </summary>
    public class PigsWeighing: BaseEntity
    {
        /// <summary>
        /// 称重ID
        /// </summary>
        [Key]
        public int PigsWeighingId {  get; set; }
        /// <summary>
        /// 称重日期
        /// </summary>
        public DateTime WeighingDate { get; set; }
        /// <summary>
        /// 称重类型ID
        /// </summary>
        public int WeighingTypeId { get; set; }
        /// <summary>
        /// 耳号
        /// </summary>
        [StringLength(50)]
        public string EarNumber { get; set; } = string.Empty;
        /// <summary>
        /// 重量
        /// </summary>
        public decimal PigWeight { get; set; }
    }
}
